import request from '/@/utils/request';

/**
 * 
 * @returns 音乐管理
 */
export function blueTMusicApi() {
	return {
		list: (params?: object) => {
			return request({
				url: '/storage/blueTMusic/list',
				method: 'get',
				params,
			});
		},
		add: (params?: object) => {
			return request({
				url: '/storage/blueTMusic/add',
				method: 'post',
				data: params,
			});
		},
		delete: (params: object) => {
			return request({
				url: '/storage/blueTMusic/delete',
				method: 'get',
				params,
			});
		},
	};
}
/**
 * 
 * @returns 文件上传
 */
 export function fileUploadApi() {
	return {
		upLoadFiles: (params?: object) => {
			return request({
				url: '/storage/fileUpload/upLoadFiles',
				method: 'post',
				data: params,
			});
		},
		queryByFilePath: (params?: object) => {
			return request({
				url: '/storage/fileUpload/queryByFilePath',
				method: 'get',
				params,
			});
		},
	};
}